package www.floatwindow.com.floatwindowdemo;

import android.content.Context;

import com.alibaba.idst.nls.internal.protocol.NlsRequest;
import com.alibaba.idst.nls.internal.protocol.NlsRequestProto;

/**
 * 语音使用工具类
 * Created by Shawn on 2018/8/31.
 */

public class AlivoiceUtils {
    /**
     * 英语
     */
    public static final String NLS_SERVICE_EN = "nls-service-en";
    /**
     * 粤语
     */
    public static final String NLS_SERVICE_YUE_STREAMING = "nls-service-yue-streaming";
    /**
     * 普通话
     */
    public static final String NLS_SERVICE_MULTI_DOMAIN = "nls-service-multi-domain";




    private Context mContext;

    public AlivoiceUtils(Context mContext) {
        this.mContext = mContext;
    }

    public NlsRequest initNlsRequest() {
        NlsRequestProto proto = new NlsRequestProto(mContext);
        proto.setApp_user_id("222"); //设置在应用中的用户名，可选
        return new NlsRequest(proto);
    }
}
